import http from './../../../base/api/public'
import querystring from 'querystring'

let sysConfig = require('@/../config/sysConfig')
let apiUrl = sysConfig.sfsApiUrlPre;

//获取媒资列表数据
export const media_list = (page, size, params) => {
  //params为json格式
  //使用querystring将json对象转成key/value串
  let querys = querystring.stringify(params);
  return http.requestQuickGet(apiUrl + '/media/file/list/' + page + '/' + size + '/?' + querys)
};

//删除媒资文件
export const media_del = (fileId)=>{
  return http.requestDelete(apiUrl+'/media/file/delete/'+fileId);
};

